﻿Imports Lourdes.BackEnd.Modelo
Imports Lourdes.BackEnd.BC
Public Class img
  Inherits System.Web.UI.Page

  Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
    With Response
      .Clear()
      .Buffer = True
      .Charset = ""
      .Cache.SetCacheability(HttpCacheability.NoCache)
      .ContentType = "image/jpeg"
      '.AddHeader("content-disposition", "attachment;filename=cadete-" & Request.QueryString("id") & ".jpg")
      .BinaryWrite(BC_PersonaImage.getByPerId(Request.QueryString("id")))
      .Flush()
      .End()
    End With

  End Sub

End Class